<?php
/**
 * 入口文件
 * @author windpurple
 * @version 1.0
 * 
 * 目录结构
 * 
 * |--App
 *    |--Config
 *       |--Config.php
 *    |--Src
 *       |--Controller //控制器
 *       |--Model	 //模型
 *       |--View	//视图文件
 * |--library  //库文件
 * |--Public	//公共 网站根目录设置此位置
 *    |--css
 *    |--js
 *    |--images
 *    |--index.php	//入口文件
 */
$starttime = microtime(true);

date_default_timezone_set('Asia/Shanghai');

//入口文件路径
defined('IMPORT_PATH') || define('IMPORT_PATH',realpath(dirname(__FILE__)));

//项目路径
defined('APP_PATH') || define('APP_PATH',IMPORT_PATH.'/App');

//程序路径
defined('PRO_PATH') || define('PRO_PATH',APP_PATH.'/Src');

//配置文件路径
defined('CONFIG_PATH') || define('CONFIG_PATH',APP_PATH.'/Config');

//库文件路径
//defined('LIB_PATH') || define('LIB_PATH',APP_PATH.'/../library');
defined('LIB_PATH') || define('LIB_PATH',IMPORT_PATH.'/library');
//defined('LIB_PATH') || define('LIB_PATH',$_SERVER['DOCUMENT_ROOT'].'/../../mvc/library');

require_once(CONFIG_PATH.'/Config.php');

require_once(LIB_PATH.'/Controller.php');


$app = Controller::getInstance();

$app -> run();

?>